<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColumnsChannelToElDiscountTable1554107713 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
	    Schema::table('el_discount', function(Blueprint $table){
		    $table->string('channel', 32)->default('ec')->after('url')->comment('ec 商城 shop 门店');
	    });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
	    Schema::table('el_discount', function(Blueprint $table){
		    $table->dropColumn('channel');
	    });
    }
}
